//
//  AyStatusTool.h
//  xWeibo
//
//  Created by alvis mac on 10/31/15.
//  Copyright © 2015 alvis. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AyHomeStatusesParame.h"
#import "AyHomeStatusesResult.h"
#import "AySendStatusParam.h"
#import "AySendStatusResult.h"
#import "AyStatusesDetailParame.h"
#import "AyStatusCommentResult.h"
#import "AyStatusCommentParame.h"
#import "AyRepostsResult.h"


@interface AyStatusTool : NSObject

/**
 *  加载首页的微博数据
 *
 *  @param param   请求参数
 *  @param success 请求成功后的回调
 *  @param failure 请求失败后的回调
 */
+ (void) homeStatusesWithParam:(AyBaseParam *) param success:(void (^)(AyHomeStatusesResult *result)) success failure:(void (^)(NSError *error)) failure;


/**
 api power not enough
 */
+ (void)getStatusDetailWithParam:(AyStatusesDetailParame *)param success:(void (^)(AyStatus *result))success failure:(void (^)(NSError *error))failure;


/**
 *  发送一条微博
 */
+ (void)sendStatusWithParam:(AySendStatusParam *)param success:(void (^)(AySendStatusResult *result))success failure:(void (^)(NSError *error))failure;


+ (void) userStatusesWithParam:(AyHomeStatusesParame *) param success:(void (^)(AyHomeStatusesResult *result)) success failure:(void (^)(NSError *error)) failure;


+ (void) statusCommentWithParam:(AyStatusCommentParame *) param success:(void (^)(AyStatusCommentResult *result)) success failure:(void (^)(NSError *error)) failure;

/**
 api power not enough
 */
+ (void) statusRepostsWithParam:(AyStatusCommentParame *) param success:(void (^)(AyRepostsResult *result)) success failure:(void (^)(NSError *error)) failure;



@end
